export default function observerLoad() {
  window.addEventListener("pageshow", function (event) {
    requestAnimationFrame(() => {
      ["load"].forEach((type) => {
        const reportData = {
          type: "performance",
          pageUrl: window.location.href,
          subType: type,
          startTime: performance.now() - event.timeStamp,
        };
        // 上报数据todo
      });
    }, true);
  });
}
